<layout name='Layout/layout_kehu' />

<script type="text/javascript">
	function save() {
		if(check_form("form_data")){
			sendForm("form_data", "{:U('save')}","__URL__");
		}
	}
	</script>
<div class="customer">
	<div class="row-fluid title">
		<span>
      <nobr>添加{:C('cate')[$cate]}</nobr>
		</span>
	</div>
	<form method='post' id="form_data">
		<input type="hidden" name="opmode" value="add">
		<input type="hidden" name="ajax" id="ajax" value="1">
		<div class="row-fluid form_box">
			<div class="row-fluid form-horizontal">
				<div class="control-group span12">
					<label class="control-label" for="name">名称*：</label>
					<div class="controls">
            <input type="text" id="name" name="name"  check="require" msg="请输入名称" >
          </div>
          <input type="hidden" id="cate" name="cate" value="{$cate}" >
				</div>
			</div>
			<div class="row-fluid form-horizontal">
				<div class="control-group">
					<label class="control-label" for="fax">描述：</label>
					<div class="controls">
						<textarea  name="description" rows="3" class="span12"></textarea>
					</div>
				</div>
				<div class="action">
					<input class="btn default" type="button" value="保存" onclick="save();">
					<input  class="btn" type="button" value="取消" onclick="go_return_url();"></div>
			</form>
		</div>
	</div>
</div>
